//
//  CostDataBase.h
//  WWXELuShang
//
//  Created by 王涛 on 15/12/21.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h"
#import "CostModel.h"
@interface CostDataBase : NSObject
+ (CostDataBase *)sharedCost;
@property (nonatomic, strong) FMDatabase *dataBase;
//获取/指定 我们数据库路径
- (NSString *)sqlitePaths:(NSString *)sqlitePaths;
//打开数据库
- (void)openSqliteWithPath:(NSString *)paths;
//关闭数据库
- (void)closeSqlite;
//创建一个数据库表
- (void)createSqliteTableWithName:(NSString *)name;
//插入一条数据
- (void)insertModel:(CostModel *)costModel;
//删除一条数据
- (void)deleteWithDate:(NSString *)date;
//获取全部数据
- (NSMutableArray *)selectAllModel;
@end
